package com.ymttest.common.enums;

public enum PackageTypeEnum {
	/**
	 * 简易打包 1
	 */
	简易打包(1),
	/**
	 * 加固打包 2
	 */
	加固打包(2);

	private int intValue;
	private static java.util.HashMap<Integer, PackageTypeEnum> mappings;

	private synchronized static java.util.HashMap<Integer, PackageTypeEnum> getMappings() {
		if (mappings == null) {
			mappings = new java.util.HashMap<Integer, PackageTypeEnum>();
		}
		return mappings;
	}

	private PackageTypeEnum(int value) {
		intValue = value;
		PackageTypeEnum.getMappings().put(value, this);
	}

	public int getValue() {
		return intValue;
	}

	public static PackageTypeEnum forValue(int value) {
		return getMappings().get(value);
	}
}
